<form name="editForm">
	<div class="form-group">
	    <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>岗位编码：</div>
			<div class="col-sm-8 col-md-8 form-input" ng-class="{ 'has-error' : editForm.roleCode.$dirty && editForm.roleCode.$invalid}">
			   <input name="roleCode" maxLength="45" class="form-control"ng-model="editModel.role.roleCode" required>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>岗位名称：</div>
			<div class="col-sm-8 col-md-8 form-input" ng-class="{ 'has-error' : editForm.roleName.$dirty && editForm.roleName.$invalid}">
			   <input name="roleName" maxLength="60" class="form-control"ng-model="editModel.role.roleName" required>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>所属部门：</div>
			<div class="col-sm-8 col-md-8 form-input" >
				<div class="input-group">
					<input name="departmentName" 
						   type="text" class="form-control" disabled 
						   ng-model="{true:'无',
									  false:'(' + editModel.role.departmentCode + ')'+editModel.role.departmentName}
									  [editModel.role.departmentId==null]">
					<span class="input-group-btn">
						<button type="button" 
							data-toggle="modal" 
							ng-click="editModel.delDepartment();"
							class="btn btn-danger btn-primary"
							data-backdrop="static">清空</button>
						<button type="button" 
							data-toggle="modal" 
							class="btn btn-primary" 
							data-backdrop="static" 
							ng-click="editModel.chooseDepartment()">选择</button>
					</span>
				</div>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">上级岗位：</div>
			<div class="col-sm-8 col-md-8 form-input" >
				<div class="input-group" ng-class="{ 'has-error' : editForm.upRole.$dirty && editForm.upRole.$invalid}">
					<input name="parentName" 
						   type="text" class="form-control" disabled 
						   ng-model="{true:'无',
									  false:'(' + editModel.role.parentCode + ')'+editModel.role.parentName}
									  [editModel.role.parentId==null]">
					<span class="input-group-btn">
						<button type="button" 
							data-toggle="modal" 
							ng-click="editModel.delRole();"
							class="btn btn-danger btn-primary"
							data-backdrop="static">清空</button>
						<button type="button" 
							data-toggle="modal" 
							class="btn btn-primary" 
							data-backdrop="static" 
							ng-click="editModel.chooseUpde()">选择</button>
					</span>
				</div>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">描述：</div>
			<div class="col-sm-8 col-md-8 form-input">
			   <textarea ng-model="editModel.role.description" class="form-control elastic __web-inspector-hide-shortcut__" rows="3" maxLength="255"></textarea>
			</div>
		</div>
	</div>	
</form>

